const Router = require('koa-router')

const router = new Router({ prefix: '/music' })

const { auth } = require('../middleware/auth_middleware')
const { musiclikeVaild, musicinfoIdVaild, ParamsVaild } = require('../middleware/userlike_middle')
const { musicKeen, musicSearchKeen, cancelMusic, musicFavorite } = require('../controller/userlike_controller')
//keen
router.post('/keen', auth, musiclikeVaild, musicKeen)

router.post('/searchkeen', auth, musicSearchKeen)

router.post('/cancelmusic', auth, musicinfoIdVaild, cancelMusic)

router.get('/getfavoritemusic', auth, ParamsVaild, musicFavorite)
module.exports = router